package com.lbd.media.dao;

import com.lbd.media.bean.FaqType;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.io.Serializable;

public interface FaqTypeRepository
        extends PagingAndSortingRepository<FaqType, Serializable>, JpaSpecificationExecutor<FaqType> {

    long countByCode(String code);

    long countByCodeAndIdNot(String code, String id);
}